inheritance in c#

55

inheritance in c# -

class Animal {  
  // fields and methods
} 

// Dog inherits from Animal
class Dog : Animal {
  // fields and methods of Animal 
  // fields and methods of Dog 
}

Comments

Submit
0 Comments